import request from "@/utils/http";

// 获取banner模块轮播图数据
export const getBannerInfo = (params = {}) => {

    // 默认为1  商品为2
    const { distributionSite = '1' } = params
    
    return request({
        url: '/home/banner',
        method: 'GET',
        params: {
            distributionSite
        }
    });
}

// 获取新鲜好物模块数据
export const getNewInfo = () => request({
    url: '/home/new',
    method: 'GET'
});

// 获取人气推荐模块数据 /home/hot
export const getHotInfo = () => request({
    url: '/home/hot',
    method: 'GET'
});

// 获取产品列表模块的数据 /home/goods
export const getGoodsInfo = () => request({
    url: '/home/goods',
    method: 'GET'
});
